<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="__PUBLIC__/Css/general.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="__PUBLIC__/Css/main.css" rel="stylesheet" type="text/css">

    <style type="text/css">
        body{
            padding: 0;
        }
        #header-frame{
            height: 80px;
        }
        #header-div {
            height: 70px;
            background: #41a5e1;
        }

        #logo-div {
            float: left;
            padding-top:10px;
        }

        #license-div {
            height: 70px;
            float: left;
            text-align:center;
            vertical-align:middle;
            line-height:50px;
        }

        #license-div a:visited, #license-div a:link {
            color: #EB8A3D;
        }

        #license-div a:hover {
            text-decoration: none;
            color: #EB8A3D;
        }

        #submenu-div {
            padding-top: 8px;
        }

        #submenu-div ul {
            margin: 0;
            padding: 0;
            list-style-type: none;
        }

        #submenu-div li {
            float: right;
            padding: 0 10px;
            margin: 3px 0;
            border-left: 1px solid #FFF;
        }

        #submenu-div a:visited, #submenu-div a:link {
            color: #FFF;
            text-decoration: none;
        }

        #submenu-div a:hover {
            color: #F5C29A;
        }

        #loading-div {
            clear: right;
            text-align: right;
            display: block;
        }

        #menu-div {
            background: #f5f5f5;
            font-weight: bold;
            height: 49px;
            line-height:49px;
            border-bottom:1px solid #e8e8e8;
        }

        #menu-div ul {
            margin: 0;
            padding: 0;
            list-style-type: none;
        }

        #menu-div li {
            float: left;
            padding-left: 50px;
        }

        #menu-div .fix-spacel{
            padding-left: 150px;
        }
        #menu-div a:visited, #menu-div a:link {
            display:block;
            padding: 0 20px;
            text-decoration: none;
            color: #3a3a3a;
        }

        #menu-div a:hover {
            color: #000;
        }

        /*#submenu-div a.fix-submenu{clear:both; margin-left:5px; padding:1px 5px; *padding:3px 5px 5px; background:#DDEEF2; color:#278296;}*/
        /*#submenu-div a.fix-submenu:hover{padding:1px 5px; *padding:3px 5px 5px; background:#FFF; color:#278296;}*/
        #menu-div li.fix-spacel{width:30px; border-left:none;}
        #menu-div li.fix-spacer{border-right:none;}
    </style>
</head>
<body>
<div id="header-div">
    <div id="logo-div" style="bgcolor:#000000;"><img src="__PUBLIC__/Images/logo.gif" alt="edit by lin" />
        <span class="noauthorize"><a href="javascript:;">[{$Think.session.username}]</a></span>
    </div>
</div>
<div id="menu-div">
    <ul>
        <li class="fix-spacel">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li>
        <li><a href="{:U(GROUP_NAME.'/Index/main')}" target="main-frame">起始页</a></li>
        <li><a href="{:U(GROUP_NAME.'/Goods/showList')}" target="main-frame">商品列表</a></li>
        <li><a href="{:U(GROUP_NAME.'/Category/showList')}" target="main-frame">商品分类</a></li>
        <li><a href="{:U(GROUP_NAME.'/Order/showList')}" target="main-frame">订单列表</a></li>
        <li><a href="{:U(GROUP_NAME.'/Member/showList')}" target="main-frame">会员列表</a></li>
        <li><a href="{:U(GROUP_NAME.'/Shop/showList')}" target="main-frame">商店设置</a></li>
        <li><a href="{:U(GROUP_NAME.'/Index/logout')}" target="_parent">退出</a></li>
        <!--授权按钮-->
        <li class="btn-bind"><span href="javascript:void(0);" onclick="yunqiLogin();"></span></li>
        <!--授权按钮-->
    </ul>
    <br class="clear" />
</div>

<script>
    function showBar(item){
        var silb = item.lastElementChild;
        silb.style.display = "block";
    }
    function hideBar(item){
        var silb = item.lastElementChild;
        silb.style.display = "none";
    }
    function yunqiLogin(){
        alert("请用云起账号登录");
    }
    /*弹层出现*/
    var bindBtn = document.getElementById('bindBtn');
    if(bindBtn){
        bindBtn.onclick = function(){
            var main = parent.document.getElementById('main-frame');
            var panel = main.contentWindow.document.getElementById('panelCloud');
            var frame = main.contentWindow.document.getElementById('cloudFrame');
            var mask = main.contentWindow.document.getElementById('Mask');
            if(panel&&mask&&frame){
                panel.style.display = 'block';
                mask.style.display = 'block';
                frame.src = 'https://openapi.shopex.cn/oauth/authorize?response_type=code&client_id=yogfss4l&redirect_uri=http%3A%2F%2Flocalhost%3A8088%2Fluyan%2Fadmin%2Fcertificate.php%3Fact%3Dget_certificate%26type%3Dindex&view=auth_ecshop';
            }
        }
    }

</script>
</body>
</html>